#ifndef __SW_SPRITE_H__
#define __SW_SPRITE_H__

#include <allegro5\allegro_primitives.h>
#include <allegro5\allegro_image.h>
#include <allegro5\allegro.h>
#include <Box2D\Box2D.h>
#include <Box2D\Dynamics\b2Body.h>

class sw_sprite {
	uint16 _flags; // reality layers
	b2Body** _bodies;

public:
	sw_sprite(uint16 flags);
	~sw_sprite();
	virtual void compute_time_step();
	virtual void draw_on_screen(float topleftx, float toplefty);
	//virtual ALLEGRO_BITMAP* get_bitmap() = 0;
	b2Body* get_body(int n);
	void set_bodies(b2Body** bodies, int n);
	b2Body* get_num_bodies();
	float get_center_x();
	float get_center_y();
	
	void set_centerofmass_x(float f);
	void set_centerofmass_y(float f);
};

#endif